import java.util.ArrayList;

public class ConcreteAggregate implements Aggregate {

    public ArrayList list = new ArrayList();

    @Override
    public IIterator createIterator() {
        return new ConcreteIterator(this);
    }

    @Override
    public void add(Object object) {
        this.list.add(object);
    }

    @Override
    public boolean remove(Object object) {
        return this.list.remove(object);

    }
}
